package com.neu.generator.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.generator.mapper.SysComQueryMapper;
import com.neu.common.core.domain.entity.SysDictData;
import com.neu.generator.domain.SysComQuery;
import com.neu.generator.service.ISysComQueryService;

/**
 * 通用查询Service业务层处理
 * 
 * @author ljxl
 * @date 2021-08-18
 */
@Service
public class SysComQueryServiceImpl implements ISysComQueryService {
	@Autowired
	private SysComQueryMapper sysComQueryMapper;

	/**
	 * 查询通用查询
	 * 
	 * @param id
	 *            通用查询ID
	 * @return 通用查询
	 */
	@Override
	public SysComQuery selectSysComQueryById(Long id) {
		return sysComQueryMapper.selectSysComQueryById(id);
	}

	/**
	 * 查询通用查询列表
	 * 
	 * @param sysComQuery
	 *            通用查询
	 * @return 通用查询
	 */
	@Override
	public List<SysComQuery> selectSysComQueryList(SysComQuery sysComQuery) {
		return sysComQueryMapper.selectSysComQueryList(sysComQuery);
	}

	/**
	 * 新增通用查询
	 * 
	 * @param sysComQuery
	 *            通用查询
	 * @return 结果
	 */
	@Override
	public int insertSysComQuery(SysComQuery sysComQuery) {
		return sysComQueryMapper.insertSysComQuery(sysComQuery);
	}

	/**
	 * 修改通用查询
	 * 
	 * @param sysComQuery
	 *            通用查询
	 * @return 结果
	 */
	@Override
	public int updateSysComQuery(SysComQuery sysComQuery) {
		return sysComQueryMapper.updateSysComQuery(sysComQuery);
	}

	/**
	 * 批量删除通用查询
	 * 
	 * @param ids
	 *            需要删除的通用查询ID
	 * @return 结果
	 */
	@Override
	public int deleteSysComQueryByIds(Long[] ids) {
		return sysComQueryMapper.deleteSysComQueryByIds(ids);
	}

	/**
	 * 删除通用查询信息
	 * 
	 * @param id
	 *            通用查询ID
	 * @return 结果
	 */
	@Override
	public int deleteSysComQueryById(Long id) {
		return sysComQueryMapper.deleteSysComQueryById(id);
	}

	@Override
	public List<SysDictData> selectQueryData(SysComQuery sysComQuery) {
		return sysComQueryMapper.selectQueryData(sysComQuery);
	}
}
